import type { RouteRecordRaw } from 'vue-router'

const router: RouteRecordRaw[] = [
  {
    path: '/user/login',
    component: () => import('../views/user/LoginView.vue'),
  },
  {
    path: '/user/main',
    component: () => import('../views/user/MainView.vue'),
    children: [
      {
        path: 'welcome',
        component: () => import('../views/user/main_children/WelcomeView.vue'),
      },
      {
        path: 'likes',
        component: () => import('../views/user/main_children/LikesView.vue'),
      },
      {
        path: 'message',
        component: () => import('../views/user/main_children/MessageView.vue'),
      },
      {
        path: 'reset',
        component: () => import('../views/user/main_children/ResetView.vue'),
      },
    ],
  },
]

export { router as userRouter }
